import Vue from 'vue'
import VueRouter from 'vue-router'
import profile from '../views/profile/index.vue'
import login from '../views/Login/index1.vue'
// import
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/login'
  },
  {
    path: '/profile',
    component: profile
  },
  {

    path: '/login',
    component: login
  }
]

const router = new VueRouter({
  routes
})

export default router
